efi: Add an EFI signature blob parser
authorDave Howells <dhowells@redhat.com>
Fri, 5 May 2017 07:21:58 +0000 (08:21 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commit1c29241c806886837de202a1b631cbb5e45416d9
tree5fa62321d235a25861539c773df9e9158f58d268
parent92a745c16d98f9449174f1ce675392c57c148f00
efi: Add an EFI signature blob parser

Add a function to parse an EFI signature blob looking for elements of
interest.  A list is made up of a series of sublists, where all the
elements in a sublist are of the same type, but sublists can be of
different types.

For each sublist encountered, the function pointed to by the
get_handler_for_guid argument is called with the type specifier GUID and
returns either a pointer to a function to handle elements of that type or
NULL if the type is not of interest.

If the sublist is of interest, each element is passed to the handler
function in turn.

Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name 0003-efi-Add-an-EFI-signature-blob-parser.patch
certs/Kconfig
certs/Makefile
certs/efi_parser.c [new file with mode: 0644]
include/linux/efi.h